<!DOCTYPE html>
<html>
<head>
  <title>FoodEx</title>
  <%= stylesheet_link_tag    "application" %>
  <%= javascript_include_tag "application" %>
  <%= javascript_include_tag "jquery-ui" %>
  <%= stylesheet_link_tag    "jquery-ui" %>
  <%= csrf_meta_tags %>
</head>
<body>

<div id="page">
<div id="page_header">
<table id="page_header_content">
<tr>
<td><%= link_to image_tag("logo.png", {:height => 50, :width => 187}), :controller => "home", :action => "index" %></td>
</tr>
<tr>
<td>| Crowd-sourced Food Delivery  |</td>
</tr>
<tr>
<td>
<div id="user_nav">
  <% if current_user %>
    Logged in as <%= current_user.email %>.
    <%= link_to "Edit Preferences", edit_user_path(current_user.id) %>
    <%= link_to "Log out", log_out_path %>
  <% else %>
    <%= link_to "Sign up", sign_up_path %> or <%= link_to "Log In", root_url %>
  <% end %>
</div>
</td>
</tr>
</table>
</div>

<div id="content">
<%= yield %>
</div>

<div id="page_footer" >
<% flash.each do |key, msg| %>
  <%= content_tag :div, msg, :class => [key, " message"], :id => "notice_#{key}", :style => "color: red" %>
  <%= content_tag :script, :type => "text/javascript" do -%>
    setTimeout(function(){$('#notice_<%= key %>').slideUp('slow','easeOutExpo')},3000);
  <% end %>
<% end %>

Copyright (c) 2011, <a href="javascript:void(0)" id="ablink">The FoodEx Team</a>
</div>

</div>
</body>
</html>
